package com.ruoyi.wechat.api;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.wechat.domain.CBanner;
import com.ruoyi.wechat.service.ICBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

@RestController

@RequestMapping("/wechat/banner")
public class WxCBannerController extends BaseController {

        @Autowired
        private ICBannerService cBannerService;


        @GetMapping("/list")
        public TableDataInfo list(CBanner cBanner)
        {

            List<CBanner> list = cBannerService.selectCBannerList(cBanner);
            System.out.println(list);
            return getDataTable(list);
        }

    }


